package com.yourenbang.lingyun.transaction.constant;

/**
 * @author Administrator
 * @Description
 * @Date 2021/1/13 10:58
 * @Created by Jason
 */

public enum HtkTicketOptionEnum {

    REWARD(100, "奖励"),
    GIVE(200, "赠送"),
    RECEIVE(300, "接收"),
    USE(400, "使用");

    HtkTicketOptionEnum(int type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }
    public static HtkTicketOptionEnum getHtkTicketOptionEnumByType(Integer code) {

        for (HtkTicketOptionEnum htkTicketOptionEnum : HtkTicketOptionEnum.values()) {
            if (code.equals(htkTicketOptionEnum.getType())) {
                return htkTicketOptionEnum;
            }
        }
        return null;
    }
    /**
     * 变动类型
     */
    private int type;
    /**
     * 变动名称
     */
    private String typeName;

    public int getType() {
        return type;
    }

    public String getTypeName() {
        return typeName;
    }
}
